<template>
  <div class="menu">
    <div class="bg"></div>
  <!--<el-radio-group v-model="isCollapse" style="width: 100%;margin-bottom: 20px;">-->
    <!--<el-radio-button :label="false">展开</el-radio-button>-->
    <!--<el-radio-button :label="true">收起</el-radio-button>-->
  <!--</el-radio-group>-->
    <template v-for="(m,index) in menus">
      {{routeName===m.url}}
        <router-link :data-auth="m.auth" :to="{name:m.url}">{{m.name}}</router-link>
    </template>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        menuIndex:this.$store.state.httpconfig.menu,
        isCollapse: false
      };
    },
    computed: {
      routeName () {
        return this.$route.name
      },
      menus () {
        return this.$store.state.httpconfig.menus
      },
    },
    created(){
    },
    methods: {
      routeGo(index, indexPath){
      }
    }
  }
</script>
